this.BX=this.BX||{};(function(exports,main_core_events,main_popup,main_core){"use strict";var ButtonTag=function e(){babelHelpers.classCallCheck(this,e)};babelHelpers.defineProperty(ButtonTag,"BUTTON",0);babelHelpers.defineProperty(ButtonTag,"LINK",1);babelHelpers.defineProperty(ButtonTag,"SUBMIT",2);babelHelpers.defineProperty(ButtonTag,"INPUT",3);babelHelpers.defineProperty(ButtonTag,"DIV",4);babelHelpers.defineProperty(ButtonTag,"SPAN",5);var _templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8;var BaseButton=function(){function e(t){babelHelpers.classCallCheck(this,e);t=main_core.Type.isPlainObject(t)?t:{};this.options=Object.assign(this.getDefaultOptions(),t);this.button=main_core.Type.isDomNode(this.options.buttonNode)?this.options.buttonNode:null;this.textNode=main_core.Type.isDomNode(this.options.textNode)?this.options.textNode:null;this.counterNode=main_core.Type.isDomNode(this.options.counterNode)?this.options.counterNode:null;this.text="";this.counter=null;this.events={};this.link="";this.maxWidth=null;this.tag=this.isEnumValue(this.options.tag,ButtonTag)?this.options.tag:ButtonTag.BUTTON;if(main_core.Type.isStringFilled(this.options.link)){this.tag=ButtonTag.LINK}this.baseClass=main_core.Type.isStringFilled(this.options.baseClass)?this.options.baseClass:"";this.disabled=false;this.handleEvent=this.handleEvent.bind(this);this.init();if(this.options.disabled===true){this.setDisabled()}this.setText(this.options.text);this.setCounter(this.options.counter);this.setProps(this.options.props);this.setDataSet(this.options.dataset);this.addClass(this.options.className);this.setLink(this.options.link);this.setMaxWidth(this.options.maxWidth);this.bindEvent("click",this.options.onclick);this.bindEvents(this.options.events)}babelHelpers.createClass(e,[{key:"init",value:function e(){}},{key:"getDefaultOptions",value:function e(){return{}}},{key:"render",value:function e(){return this.getContainer()}},{key:"renderTo",value:function e(t){if(main_core.Type.isDomNode(t)){return t.appendChild(this.getContainer())}return null}},{key:"getContainer",value:function e(){if(this.button!==null){return this.button}switch(this.getTag()){case ButtonTag.BUTTON:default:this.button=main_core.Tag.render(_templateObject||(_templateObject=babelHelpers.taggedTemplateLiteral(['<button class="','"></button>'])),this.getBaseClass());break;case ButtonTag.INPUT:this.button=main_core.Tag.render(_templateObject2||(_templateObject2=babelHelpers.taggedTemplateLiteral(['<input class="','" type="button">'])),this.getBaseClass());break;case ButtonTag.LINK:this.button=main_core.Tag.render(_templateObject3||(_templateObject3=babelHelpers.taggedTemplateLiteral(['<a class="','" href=""></a>'])),this.getBaseClass());break;case ButtonTag.SUBMIT:this.button=main_core.Tag.render(_templateObject4||(_templateObject4=babelHelpers.taggedTemplateLiteral(['<input class="','" type="submit">'])),this.getBaseClass());break;case ButtonTag.DIV:this.button=main_core.Tag.render(_templateObject5||(_templateObject5=babelHelpers.taggedTemplateLiteral(['<div class="','"></div>'])),this.getBaseClass());break;case ButtonTag.SPAN:this.button=main_core.Tag.render(_templateObject6||(_templateObject6=babelHelpers.taggedTemplateLiteral(['<span class="','"></span>'])),this.getBaseClass());break}return this.button}},{key:"getBaseClass",value:function e(){return this.baseClass}},{key:"setText",value:function e(t){if(main_core.Type.isString(t)){this.text=t;if(this.isInputType()){this.getContainer().value=t}else if(t.length>0){if(this.textNode===null){this.textNode=main_core.Tag.render(_templateObject7||(_templateObject7=babelHelpers.taggedTemplateLiteral(['<span class="ui-btn-text"></span>'])))}if(!this.textNode.parentNode){main_core.Dom.prepend(this.textNode,this.getContainer())}this.textNode.textContent=t}else{if(this.textNode!==null){main_core.Dom.remove(this.textNode)}}}return this}},{key:"getText",value:function e(){return this.text}},{key:"setCounter",value:function e(t){if([0,"0","",null,false].includes(t)){if(this.counterNode!==null){main_core.Dom.remove(this.counterNode);this.counterNode=null}this.counter=null}else if(main_core.Type.isNumber(t)&&t>0||main_core.Type.isStringFilled(t)){if(this.isInputType()){throw new Error("BX.UI.Button: an input button cannot have a counter.")}if(this.counterNode===null){this.counterNode=main_core.Tag.render(_templateObject8||(_templateObject8=babelHelpers.taggedTemplateLiteral(['<span class="ui-btn-counter"></span>'])));main_core.Dom.append(this.counterNode,this.getContainer())}this.counter=t;this.counterNode.textContent=t}return this}},{key:"getCounter",value:function e(){return this.counter}},{key:"setLink",value:function e(t){if(main_core.Type.isString(t)){if(this.getTag()!==ButtonTag.LINK){throw new Error("BX.UI.Button: only an anchor button tag supports a link.")}this.getContainer().href=t}return this}},{key:"getLink",value:function e(){return this.getContainer().href}},{key:"setMaxWidth",value:function e(t){if(main_core.Type.isNumber(t)&&t>0){this.maxWidth=t;this.getContainer().style.maxWidth="".concat(t,"px")}else if(t===null){this.getContainer().style.removeProperty("max-width");this.maxWidth=null}return this}},{key:"getMaxWidth",value:function e(){return this.maxWidth}},{key:"getTag",value:function e(){return this.tag}},{key:"setProps",value:function e(t){if(!main_core.Type.isPlainObject(t)){return this}for(var n in t){var o=t[n];main_core.Dom.attr(this.getContainer(),n,o)}return this}},{key:"getProps",value:function e(){var t=this.getContainer().attributes;var n={};var o=this.isInputType()?["class","type"]:["class"];for(var i=0;i<t.length;i++){var r=t[i],s=r.name,a=r.value;if(o.includes(s)||s.startsWith("data-")){continue}n[s]=a}return n}},{key:"setDataSet",value:function e(t){if(!main_core.Type.isPlainObject(t)){return this}for(var n in t){var o=t[n];if(o===null){delete this.getDataSet()[n]}else{this.getDataSet()[n]=o}}return this}},{key:"getDataSet",value:function e(){return this.getContainer().dataset}},{key:"addClass",value:function e(t){if(main_core.Type.isStringFilled(t)){main_core.Dom.addClass(this.getContainer(),t)}return this}},{key:"removeClass",value:function e(t){if(main_core.Type.isStringFilled(t)){main_core.Dom.removeClass(this.getContainer(),t)}return this}},{key:"setDisabled",value:function e(t){if(t===false){this.disabled=false;this.setProps({disabled:null})}else{this.disabled=true;this.setProps({disabled:true})}return this}},{key:"isDisabled",value:function e(){return this.disabled}},{key:"isInputType",value:function e(){return this.getTag()===ButtonTag.SUBMIT||this.getTag()===ButtonTag.INPUT}},{key:"bindEvents",value:function e(t){if(main_core.Type.isPlainObject(t)){for(var n in t){var o=t[n];this.bindEvent(n,o)}}return this}},{key:"unbindEvents",value:function e(t){var n=this;if(main_core.Type.isArray(t)){t.forEach((function(e){n.unbindEvent(e)}))}return this}},{key:"bindEvent",value:function e(t,n){if(main_core.Type.isStringFilled(t)&&main_core.Type.isFunction(n)){this.unbindEvent(t);this.events[t]=n;main_core.Event.bind(this.getContainer(),t,this.handleEvent)}return this}},{key:"unbindEvent",value:function e(t){if(this.events[t]){delete this.events[t];main_core.Event.unbind(this.getContainer(),t,this.handleEvent)}return this}},{key:"handleEvent",value:function e(t){var n=t.type;if(this.events[n]){var o=this.events[n];o.call(this,this,t)}}},{key:"isEnumValue",value:function e(t,n){for(var o in n){if(n[o]===t){return true}}return false}}]);return e}();var ButtonColor=function e(){babelHelpers.classCallCheck(this,e)};babelHelpers.defineProperty(ButtonColor,"DANGER","ui-btn-danger");babelHelpers.defineProperty(ButtonColor,"DANGER_DARK","ui-btn-danger-dark");babelHelpers.defineProperty(ButtonColor,"DANGER_LIGHT","ui-btn-danger-light");babelHelpers.defineProperty(ButtonColor,"SUCCESS","ui-btn-success");babelHelpers.defineProperty(ButtonColor,"SUCCESS_DARK","ui-btn-success-dark");babelHelpers.defineProperty(ButtonColor,"SUCCESS_LIGHT","ui-btn-success-light");babelHelpers.defineProperty(ButtonColor,"PRIMARY_DARK","ui-btn-primary-dark");babelHelpers.defineProperty(ButtonColor,"PRIMARY","ui-btn-primary");babelHelpers.defineProperty(ButtonColor,"SECONDARY","ui-btn-secondary");babelHelpers.defineProperty(ButtonColor,"LINK","ui-btn-link");babelHelpers.defineProperty(ButtonColor,"LIGHT","ui-btn-light");babelHelpers.defineProperty(ButtonColor,"LIGHT_BORDER","ui-btn-light-border");var ButtonSize=function e(){babelHelpers.classCallCheck(this,e)};babelHelpers.defineProperty(ButtonSize,"LARGE","ui-btn-lg");babelHelpers.defineProperty(ButtonSize,"MEDIUM","ui-btn-md");babelHelpers.defineProperty(ButtonSize,"SMALL","ui-btn-sm");babelHelpers.defineProperty(ButtonSize,"EXTRA_SMALL","ui-btn-xs");var ButtonIcon=function e(){babelHelpers.classCallCheck(this,e)};babelHelpers.defineProperty(ButtonIcon,"UNFOLLOW","ui-btn-icon-unfollow");babelHelpers.defineProperty(ButtonIcon,"FOLLOW","ui-btn-icon-follow");babelHelpers.defineProperty(ButtonIcon,"ADD","ui-btn-icon-add");babelHelpers.defineProperty(ButtonIcon,"STOP","ui-btn-icon-stop");babelHelpers.defineProperty(ButtonIcon,"START","ui-btn-icon-start");babelHelpers.defineProperty(ButtonIcon,"PAUSE","ui-btn-icon-pause");babelHelpers.defineProperty(ButtonIcon,"ADD_FOLDER","ui-btn-icon-add-folder");babelHelpers.defineProperty(ButtonIcon,"SETTING","ui-btn-icon-setting");babelHelpers.defineProperty(ButtonIcon,"TASK","ui-btn-icon-task");babelHelpers.defineProperty(ButtonIcon,"INFO","ui-btn-icon-info");babelHelpers.defineProperty(ButtonIcon,"SEARCH","ui-btn-icon-search");babelHelpers.defineProperty(ButtonIcon,"PRINT","ui-btn-icon-print");babelHelpers.defineProperty(ButtonIcon,"LIST","ui-btn-icon-list");babelHelpers.defineProperty(ButtonIcon,"BUSINESS","ui-btn-icon-business");babelHelpers.defineProperty(ButtonIcon,"BUSINESS_CONFIRM","ui-btn-icon-business-confirm");babelHelpers.defineProperty(ButtonIcon,"BUSINESS_WARNING","ui-btn-icon-business-warning");babelHelpers.defineProperty(ButtonIcon,"CAMERA","ui-btn-icon-camera");babelHelpers.defineProperty(ButtonIcon,"PHONE_UP","ui-btn-icon-phone-up");babelHelpers.defineProperty(ButtonIcon,"PHONE_DOWN","ui-btn-icon-phone-down");babelHelpers.defineProperty(ButtonIcon,"PHONE_CALL","ui-btn-icon-phone-call");babelHelpers.defineProperty(ButtonIcon,"BACK","ui-btn-icon-back");babelHelpers.defineProperty(ButtonIcon,"REMOVE","ui-btn-icon-remove");babelHelpers.defineProperty(ButtonIcon,"DOWNLOAD","ui-btn-icon-download");babelHelpers.defineProperty(ButtonIcon,"DOTS","ui-btn-icon-ui-btn-icon-dots");babelHelpers.defineProperty(ButtonIcon,"DONE","ui-btn-icon-done");babelHelpers.defineProperty(ButtonIcon,"CANCEL","ui-btn-icon-cancel");babelHelpers.defineProperty(ButtonIcon,"DISK","ui-btn-icon-disk");babelHelpers.defineProperty(ButtonIcon,"LOCK","ui-btn-icon-lock");babelHelpers.defineProperty(ButtonIcon,"MAIL","ui-btn-icon-mail");babelHelpers.defineProperty(ButtonIcon,"CHAT","ui-btn-icon-chat");babelHelpers.defineProperty(ButtonIcon,"PAGE","ui-btn-icon-page");babelHelpers.defineProperty(ButtonIcon,"CLOUD","ui-btn-icon-cloud");babelHelpers.defineProperty(ButtonIcon,"EDIT","ui-btn-icon-edit");babelHelpers.defineProperty(ButtonIcon,"SHARE","ui-btn-icon-share");babelHelpers.defineProperty(ButtonIcon,"ANGLE_UP","ui-btn-icon-angle-up");babelHelpers.defineProperty(ButtonIcon,"ANGLE_DOWN","ui-btn-icon-angle-down");babelHelpers.defineProperty(ButtonIcon,"EYE_OPENED","ui-btn-icon-eye-opened");babelHelpers.defineProperty(ButtonIcon,"EYE_CLOSED","ui-btn-icon-eye-closed");babelHelpers.defineProperty(ButtonIcon,"ALERT","ui-btn-icon-alert");babelHelpers.defineProperty(ButtonIcon,"FAIL","ui-btn-icon-fail");babelHelpers.defineProperty(ButtonIcon,"SUCCESS","ui-btn-icon-success");babelHelpers.defineProperty(ButtonIcon,"PLAN","ui-btn-icon-plan");babelHelpers.defineProperty(ButtonIcon,"TARIFF","ui-btn-icon-tariff");babelHelpers.defineProperty(ButtonIcon,"BATTERY","ui-btn-icon-battery");babelHelpers.defineProperty(ButtonIcon,"NO_BATTERY","ui-btn-icon-no-battery");babelHelpers.defineProperty(ButtonIcon,"HALF_BATTERY","ui-btn-icon-half-battery");babelHelpers.defineProperty(ButtonIcon,"LOW_BATTERY","ui-btn-icon-low-battery");babelHelpers.defineProperty(ButtonIcon,"CRIT_BATTERY","ui-btn-icon-crit-battery");babelHelpers.defineProperty(ButtonIcon,"DEMO","ui-btn-icon-demo");babelHelpers.defineProperty(ButtonIcon,"ROBOTS","ui-btn-icon-robots");babelHelpers.defineProperty(ButtonIcon,"NOTE","ui-btn-icon-note");babelHelpers.defineProperty(ButtonIcon,"SCRIPT","ui-btn-icon-script");babelHelpers.defineProperty(ButtonIcon,"PRINT2","ui-btn-icon-print-2");babelHelpers.defineProperty(ButtonIcon,"FUNNEL","ui-btn-icon-funnel");babelHelpers.defineProperty(ButtonIcon,"FORWARD","ui-btn-icon-forward");babelHelpers.defineProperty(ButtonIcon,"COPY","ui-btn-icon-copy");var ButtonState=function e(){babelHelpers.classCallCheck(this,e)};babelHelpers.defineProperty(ButtonState,"HOVER","ui-btn-hover");babelHelpers.defineProperty(ButtonState,"ACTIVE","ui-btn-active");babelHelpers.defineProperty(ButtonState,"DISABLED","ui-btn-disabled");babelHelpers.defineProperty(ButtonState,"CLOCKING","ui-btn-clock");babelHelpers.defineProperty(ButtonState,"WAITING","ui-btn-wait");var ButtonStyle=function e(){babelHelpers.classCallCheck(this,e)};babelHelpers.defineProperty(ButtonStyle,"NO_CAPS","ui-btn-no-caps");babelHelpers.defineProperty(ButtonStyle,"ROUND","ui-btn-round");babelHelpers.defineProperty(ButtonStyle,"DROPDOWN","ui-btn-dropdown");babelHelpers.defineProperty(ButtonStyle,"COLLAPSED","ui-btn-collapsed");babelHelpers.defineProperty(ButtonStyle,"DEPEND_ON_THEME","ui-btn-themes");function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){babelHelpers.defineProperty(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Button=function(e){babelHelpers.inherits(t,e);function t(e){var n;babelHelpers.classCallCheck(this,t);e=main_core.Type.isPlainObject(e)?e:{};e.baseClass=main_core.Type.isStringFilled(e.baseClass)?e.baseClass:t.BASE_CLASS;n=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this,e));n.isDependOnTheme=null;n.size=null;n.color=null;n.icon=null;n.state=null;n.id=null;n.context=null;n.menuWindow=null;n.handleMenuClick=n.handleMenuClick.bind(babelHelpers.assertThisInitialized(n));n.handleMenuClose=n.handleMenuClose.bind(babelHelpers.assertThisInitialized(n));n.setDependOnTheme(n.options.dependOnTheme);n.setSize(n.options.size);n.setColor(n.options.color);n.setIcon(n.options.icon);n.setState(n.options.state);n.setId(n.options.id);n.setMenu(n.options.menu);n.setContext(n.options.context);n.options.noCaps&&n.setNoCaps();n.options.round&&n.setRound();if(n.options.dropdown||n.getMenuWindow()&&n.options.dropdown!==false){n.setDropdown()}return n}babelHelpers.createClass(t,[{key:"setSize",value:function e(t){return this.setProperty("size",t,ButtonSize)}},{key:"getSize",value:function e(){return this.size}},{key:"setColor",value:function e(t){return this.setProperty("color",t,ButtonColor)}},{key:"getColor",value:function e(){return this.color}},{key:"setIcon",value:function e(t){this.setProperty("icon",t,ButtonIcon);if(this.isInputType()&&this.getIcon()!==null){throw new Error("BX.UI.Button: Input type button cannot have an icon.")}return this}},{key:"getIcon",value:function e(){return this.icon}},{key:"setState",value:function e(t){return this.setProperty("state",t,ButtonState)}},{key:"getState",value:function e(){return this.state}},{key:"setNoCaps",value:function e(t){if(t===false){main_core.Dom.removeClass(this.getContainer(),ButtonStyle.NO_CAPS)}else{main_core.Dom.addClass(this.getContainer(),ButtonStyle.NO_CAPS)}return this}},{key:"isNoCaps",value:function e(){return main_core.Dom.hasClass(this.getContainer(),ButtonStyle.NO_CAPS)}},{key:"setRound",value:function e(t){if(t===false){main_core.Dom.removeClass(this.getContainer(),ButtonStyle.ROUND)}else{main_core.Dom.addClass(this.getContainer(),ButtonStyle.ROUND)}return this}},{key:"isRound",value:function e(){return main_core.Dom.hasClass(this.getContainer(),ButtonStyle.ROUND)}},{key:"setDependOnTheme",value:function e(t){if(t===true){main_core.Dom.addClass(this.getContainer(),ButtonStyle.DEPEND_ON_THEME)}else if(t===false){main_core.Dom.removeClass(this.getContainer(),ButtonStyle.DEPEND_ON_THEME)}return this}},{key:"isDependOnTheme",value:function e(){if(flag===false){main_core.Dom.removeClass(this.getContainer(),ButtonStyle.DEPEND_ON_THEME)}else{main_core.Dom.addClass(this.getContainer(),ButtonStyle.DEPEND_ON_THEME)}return this}},{key:"setDropdown",value:function e(t){if(t===false){main_core.Dom.removeClass(this.getContainer(),ButtonStyle.DROPDOWN)}else{main_core.Dom.addClass(this.getContainer(),ButtonStyle.DROPDOWN)}return this}},{key:"isDropdown",value:function e(){return main_core.Dom.hasClass(this.getContainer(),ButtonStyle.DROPDOWN)}},{key:"setCollapsed",value:function e(t){if(t===false){main_core.Dom.removeClass(this.getContainer(),ButtonStyle.COLLAPSED)}else{main_core.Dom.addClass(this.getContainer(),ButtonStyle.COLLAPSED)}return this}},{key:"isCollapsed",value:function e(){return main_core.Dom.hasClass(this.getContainer(),ButtonStyle.COLLAPSED)}},{key:"setMenu",value:function e(t){if(main_core.Type.isPlainObject(t)&&main_core.Type.isArray(t.items)&&t.items.length>0){this.setMenu(false);this.menuWindow=new main_popup.Menu(_objectSpread({id:"ui-btn-menu-".concat(main_core.Text.getRandom().toLowerCase()),bindElement:this.getMenuBindElement()},t));this.menuWindow.getPopupWindow().subscribe("onClose",this.handleMenuClose);main_core.Event.bind(this.getMenuClickElement(),"click",this.handleMenuClick)}else if(t===false&&this.menuWindow!==null){this.menuWindow.close();this.menuWindow.getPopupWindow().unsubscribe("onClose",this.handleMenuClose);main_core.Event.unbind(this.getMenuClickElement(),"click",this.handleMenuClick);this.menuWindow.destroy();this.menuWindow=null}return this}},{key:"getMenuBindElement",value:function e(){return this.getContainer()}},{key:"getMenuClickElement",value:function e(){return this.getContainer()}},{key:"handleMenuClick",value:function e(t){this.getMenuWindow().show();this.setActive(this.getMenuWindow().getPopupWindow().isShown())}},{key:"handleMenuClose",value:function e(){this.setActive(false)}},{key:"getMenuWindow",value:function e(){return this.menuWindow}},{key:"setId",value:function e(t){if(main_core.Type.isStringFilled(t)||main_core.Type.isNull(t)){this.id=t}return this}},{key:"getId",value:function e(){return this.id}},{key:"setActive",value:function e(t){return this.setState(t===false?null:ButtonState.ACTIVE)}},{key:"isActive",value:function e(){return this.getState()===ButtonState.ACTIVE}},{key:"setHovered",value:function e(t){return this.setState(t===false?null:ButtonState.HOVER)}},{key:"isHover",value:function e(){return this.getState()===ButtonState.HOVER}},{key:"setDisabled",value:function e(n){this.setState(n===false?null:ButtonState.DISABLED);babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"setDisabled",this).call(this,n);return this}},{key:"isDisabled",value:function e(){return this.getState()===ButtonState.DISABLED}},{key:"setWaiting",value:function e(t){if(t===false){this.setState(null);this.setProps({disabled:null})}else{this.setState(ButtonState.WAITING);this.setProps({disabled:true})}return this}},{key:"isWaiting",value:function e(){return this.getState()===ButtonState.WAITING}},{key:"setClocking",value:function e(t){if(t===false){this.setState(null);this.setProps({disabled:null})}else{this.setState(ButtonState.CLOCKING);this.setProps({disabled:true})}return this}},{key:"isClocking",value:function e(){return this.getState()===ButtonState.CLOCKING}},{key:"setProperty",value:function e(t,n,o){if(this.isEnumValue(n,o)){main_core.Dom.removeClass(this.getContainer(),this[t]);main_core.Dom.addClass(this.getContainer(),n);this[t]=n}else if(n===null){main_core.Dom.removeClass(this.getContainer(),this[t]);this[t]=null}return this}},{key:"setContext",value:function e(t){if(!main_core.Type.isUndefined(t)){this.context=t}return this}},{key:"getContext",value:function e(){return this.context}}]);return t}(BaseButton);babelHelpers.defineProperty(Button,"BASE_CLASS","ui-btn");babelHelpers.defineProperty(Button,"Size",ButtonSize);babelHelpers.defineProperty(Button,"Color",ButtonColor);babelHelpers.defineProperty(Button,"State",ButtonState);babelHelpers.defineProperty(Button,"Icon",ButtonIcon);babelHelpers.defineProperty(Button,"Tag",ButtonTag);babelHelpers.defineProperty(Button,"Style",ButtonStyle);var SplitButtonState=function e(){babelHelpers.classCallCheck(this,e)};babelHelpers.defineProperty(SplitButtonState,"HOVER","ui-btn-hover");babelHelpers.defineProperty(SplitButtonState,"MAIN_HOVER","ui-btn-main-hover");babelHelpers.defineProperty(SplitButtonState,"MENU_HOVER","ui-btn-menu-hover");babelHelpers.defineProperty(SplitButtonState,"ACTIVE","ui-btn-active");babelHelpers.defineProperty(SplitButtonState,"MAIN_ACTIVE","ui-btn-main-active");babelHelpers.defineProperty(SplitButtonState,"MENU_ACTIVE","ui-btn-menu-active");babelHelpers.defineProperty(SplitButtonState,"DISABLED","ui-btn-disabled");babelHelpers.defineProperty(SplitButtonState,"MAIN_DISABLED","ui-btn-main-disabled");babelHelpers.defineProperty(SplitButtonState,"MENU_DISABLED","ui-btn-menu-disabled");babelHelpers.defineProperty(SplitButtonState,"CLOCKING","ui-btn-clock");babelHelpers.defineProperty(SplitButtonState,"WAITING","ui-btn-wait");var SplitSubButtonType=function e(){babelHelpers.classCallCheck(this,e)};babelHelpers.defineProperty(SplitSubButtonType,"MAIN","ui-btn-main");babelHelpers.defineProperty(SplitSubButtonType,"MENU","ui-btn-menu");var SplitSubButton=function(e){babelHelpers.inherits(t,e);function t(e){var n;babelHelpers.classCallCheck(this,t);e=main_core.Type.isPlainObject(e)?e:{};e.baseClass=e.buttonType===SplitSubButtonType.MAIN?SplitSubButtonType.MAIN:SplitSubButtonType.MENU;n=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this,e));if(n.isInputType()){throw new Error("BX.UI.SplitSubButton: Split button cannot be an input tag.")}return n}babelHelpers.createClass(t,[{key:"init",value:function e(){this.buttonType=this.options.buttonType;this.splitButton=this.options.splitButton;babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"init",this).call(this)}},{key:"getSplitButton",value:function e(){return this.splitButton}},{key:"isMainButton",value:function e(){return this.buttonType===SplitSubButtonType.MAIN}},{key:"isMenuButton",value:function e(){return this.buttonType===SplitSubButtonType.MENU}},{key:"setText",value:function e(n){if(main_core.Type.isString(n)&&this.isMenuButton()){throw new Error("BX.UI.SplitButton: a menu button doesn't support a text caption.")}return babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"setText",this).call(this,n)}},{key:"setActive",value:function e(t){this.toggleState(t,SplitButtonState.ACTIVE,SplitButtonState.MAIN_ACTIVE,SplitButtonState.MENU_ACTIVE);return this}},{key:"isActive",value:function e(){var t=this.getSplitButton().getState();if(t===SplitButtonState.ACTIVE){return true}if(this.isMainButton()){return t===SplitButtonState.MAIN_ACTIVE}return t===SplitButtonState.MENU_ACTIVE}},{key:"setDisabled",value:function e(n){this.toggleState(n,SplitButtonState.DISABLED,SplitButtonState.MAIN_DISABLED,SplitButtonState.MENU_DISABLED);babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"setDisabled",this).call(this,n);return this}},{key:"setHovered",value:function e(t){this.toggleState(t,SplitButtonState.HOVER,SplitButtonState.MAIN_HOVER,SplitButtonState.MENU_HOVER);return this}},{key:"isHovered",value:function e(){var t=this.getSplitButton().getState();if(t===SplitButtonState.HOVER){return true}if(this.isMainButton()){return t===SplitButtonState.MAIN_HOVER}return t===SplitButtonState.MENU_HOVER}},{key:"toggleState",value:function e(t,n,o,i){var r=this.getSplitButton().getState();if(t===false){if(r===n){this.getSplitButton().setState(this.isMainButton()?i:o)}else{this.getSplitButton().setState(null)}}else{if(r===o&&this.isMenuButton()){this.getSplitButton().setState(n)}else if(r===i&&this.isMainButton()){this.getSplitButton().setState(n)}else if(r!==n){this.getSplitButton().setState(this.isMainButton()?o:i)}}}}]);return t}(BaseButton);babelHelpers.defineProperty(SplitSubButton,"Type",SplitSubButtonType);var _templateObject$1;var SplitButton=function(e){babelHelpers.inherits(t,e);function t(e){babelHelpers.classCallCheck(this,t);e=main_core.Type.isPlainObject(e)?e:{};if(main_core.Type.isStringFilled(e.link)){e.mainButton=main_core.Type.isPlainObject(e.mainButton)?e.mainButton:{};e.mainButton.link=e.link;delete e.link}e.tag=ButtonTag.DIV;e.baseClass=t.BASE_CLASS;return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this,e))}babelHelpers.createClass(t,[{key:"init",value:function e(){var n=main_core.Type.isPlainObject(this.options.mainButton)?this.options.mainButton:{};var o=main_core.Type.isPlainObject(this.options.menuButton)?this.options.menuButton:{};n.buttonType=SplitSubButtonType.MAIN;n.splitButton=this;o.buttonType=SplitSubButtonType.MENU;o.splitButton=this;this.mainButton=new SplitSubButton(n);this.menuButton=new SplitSubButton(o);this.menuTarget=SplitSubButtonType.MAIN;if(this.options.menuTarget===SplitSubButtonType.MENU){this.menuTarget=SplitSubButtonType.MENU}babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"init",this).call(this)}},{key:"getContainer",value:function e(){if(this.button===null){this.button=main_core.Tag.render(_templateObject$1||(_templateObject$1=babelHelpers.taggedTemplateLiteral(['\n\t\t\t\t<div class="','">',"</div>\n\t\t\t"])),this.getBaseClass(),[this.getMainButton().getContainer(),this.getMenuButton().getContainer()])}return this.button}},{key:"getMainButton",value:function e(){return this.mainButton}},{key:"getMenuButton",value:function e(){return this.menuButton}},{key:"setText",value:function e(t){if(main_core.Type.isString(t)){this.getMainButton().setText(t)}return this}},{key:"getText",value:function e(){return this.getMainButton().getText()}},{key:"setCounter",value:function e(t){return this.getMainButton().setCounter(t)}},{key:"getCounter",value:function e(){return this.getMainButton().getCounter()}},{key:"setLink",value:function e(t){return this.getMainButton().setLink(t)}},{key:"getLink",value:function e(){return this.getMainButton().getLink()}},{key:"setState",value:function e(t){return this.setProperty("state",t,SplitButtonState)}},{key:"setDisabled",value:function e(t){this.setState(t===false?null:ButtonState.DISABLED);this.getMainButton().setDisabled(t);this.getMenuButton().setDisabled(t);return this}},{key:"getMenuBindElement",value:function e(){if(this.getMenuTarget()===SplitSubButtonType.MENU){return this.getMenuButton().getContainer()}else{return this.getContainer()}}},{key:"handleMenuClick",value:function e(t){this.getMenuWindow().show();var n=this.getMenuWindow().getPopupWindow().isShown();this.getMenuButton().setActive(n)}},{key:"handleMenuClose",value:function e(){this.getMenuButton().setActive(false)}},{key:"getMenuClickElement",value:function e(){return this.getMenuButton().getContainer()}},{key:"getMenuTarget",value:function e(){return this.menuTarget}},{key:"setDropdown",value:function e(t){return this}},{key:"isDropdown",value:function e(){return true}}]);return t}(Button);babelHelpers.defineProperty(SplitButton,"BASE_CLASS","ui-btn-split");babelHelpers.defineProperty(SplitButton,"State",SplitButtonState);var _templateObject$2;function _classStaticPrivateMethodGet(e,t,n){_classCheckPrivateStaticAccess(e,t);return n}function _classCheckPrivateStaticAccess(e,t){if(e!==t){throw new TypeError("Private static access of wrong provenance")}}var ButtonManager=function(){function e(){babelHelpers.classCallCheck(this,e)}babelHelpers.createClass(e,null,[{key:"createFromNode",value:function t(n){var o=this;if(!main_core.Type.isDomNode(n)){throw new Error('BX.UI.ButtonManager.createFromNode: "node" must be a DOM node.')}if(!main_core.Dom.hasClass(n,Button.BASE_CLASS)&&!main_core.Dom.hasClass(n,SplitButton.BASE_CLASS)){throw new Error('BX.UI.ButtonManager.createFromNode: "node" is not a button.')}var i=main_core.Dom.hasClass(n,SplitButton.BASE_CLASS);var r=null;var s=null;var a=null;var l=null;var u=false;var c={};var p={};if(i){var b=n.querySelector(".".concat(SplitSubButtonType.MAIN));var h=n.querySelector(".".concat(SplitSubButtonType.MENU));if(!b){throw new Error("BX.UI.ButtonManager.createFromNode: a split button doesn't have a main button.")}if(!h){throw new Error("BX.UI.ButtonManager.createFromNode: a split button doesn't have a menu button.")}var B=_classStaticPrivateMethodGet(this,e,_getTag).call(this,b);if(B===ButtonTag.INPUT||B===ButtonTag.SUBMIT){s=b.value}else{var d=_classStaticPrivateMethodGet(this,e,_getTextNode).call(this,b);var f=babelHelpers.slicedToArray(d,2);a=f[0];l=f[1];s=a.textContent}u=main_core.Dom.hasClass(n,SplitButtonState.DISABLED);c={tag:B,textNode:a,counterNode:l,buttonNode:b,disabled:main_core.Dom.hasClass(n,SplitButtonState.MAIN_DISABLED)};p={tag:_classStaticPrivateMethodGet(this,e,_getTag).call(this,h),buttonNode:h,textNode:null,counterNode:null,disabled:main_core.Dom.hasClass(n,SplitButtonState.MENU_DISABLED)}}else{r=_classStaticPrivateMethodGet(this,e,_getTag).call(this,n);if(r===null){throw new Error('BX.UI.ButtonManager.createFromNode: "node" must be a button, link or input.')}u=main_core.Dom.hasClass(n,ButtonState.DISABLED);if(r===ButtonTag.INPUT||r===ButtonTag.SUBMIT){s=n.value}else{var S=_classStaticPrivateMethodGet(this,e,_getTextNode).call(this,n);var y=babelHelpers.slicedToArray(S,2);a=y[0];l=y[1];s=a.textContent}}var g={id:n.dataset.btnUniqid,buttonNode:n,textNode:i?null:a,counterNode:i?null:l,counter:_classStaticPrivateMethodGet(this,e,_getCounter).call(this,l),tag:r,text:s,disabled:u,mainButton:c,menuButton:p,size:_classStaticPrivateMethodGet(this,e,_getEnumProp).call(this,n,ButtonSize),color:_classStaticPrivateMethodGet(this,e,_getEnumProp).call(this,n,ButtonColor),icon:_classStaticPrivateMethodGet(this,e,_getEnumProp).call(this,n,ButtonIcon),state:_classStaticPrivateMethodGet(this,e,_getEnumProp).call(this,n,i?SplitButtonState:ButtonState),noCaps:main_core.Dom.hasClass(n,ButtonStyle.NO_CAPS),round:main_core.Dom.hasClass(n,ButtonStyle.ROUND)};var C=main_core.Dom.attr(n,"data-json-options")||{};if(main_core.Dom.hasClass(n,ButtonStyle.DROPDOWN)){g.dropdown=true}else if(C.dropdown===false){g.dropdown=false}if(C.onclick){g.onclick=_classStaticPrivateMethodGet(this,e,_convertEventHandler).call(this,C.onclick)}if(main_core.Type.isPlainObject(C.events)){g.events=C.events;_classStaticPrivateMethodGet(this,e,_convertEvents).call(this,g.events)}if(main_core.Type.isPlainObject(C.menu)){g.menu=C.menu;_classStaticPrivateMethodGet(this,e,_convertMenuEvents).call(this,g.menu.items)}["mainButton","menuButton"].forEach((function(t){if(!main_core.Type.isPlainObject(C[t])){return}g[t]=main_core.Runtime.merge(g[t],C[t]);if(g[t].onclick){g[t].onclick=_classStaticPrivateMethodGet(o,e,_convertEventHandler).call(o,g[t].onclick)}_classStaticPrivateMethodGet(o,e,_convertEvents).call(o,g[t].events)}));if(main_core.Type.isStringFilled(C.menuTarget)){g.menuTarget=C.menuTarget}return i?new SplitButton(g):new Button(g)}},{key:"createByUniqId",value:function e(t){if(!main_core.Type.isStringFilled(t)){return null}var n=document.querySelector('[data-btn-uniqid="'.concat(t,'"]'));return n?this.createFromNode(n):null}},{key:"getByUniqid",value:function e(t){var n=BX.UI.ToolbarManager.getDefaultToolbar();return n?n.getButton(t):null}}]);return e}();function _getTag(e){if(e.nodeName==="A"){return ButtonTag.LINK}else if(e.nodeName==="BUTTON"){return ButtonTag.BUTTON}else if(e.nodeName==="INPUT"&&e.type==="button"){return ButtonTag.INPUT}else if(e.nodeName==="INPUT"&&e.type==="submit"){return ButtonTag.SUBMIT}return null}function _getTextNode(e){var t=e.querySelector(".ui-btn-text");var n=e.querySelector(".ui-btn-counter");if(!t){if(n){main_core.Dom.remove(n)}t=main_core.Tag.render(_templateObject$2||(_templateObject$2=babelHelpers.taggedTemplateLiteral(['<span class="ui-btn-text">',"</span>"])),e.innerHTML.trim());main_core.Dom.clean(e);main_core.Dom.append(t,e);if(n){main_core.Dom.append(n,e)}}return[t,n]}function _getCounter(e){if(main_core.Type.isDomNode(e)){var t=e.textContent;var n=Number(t);return main_core.Type.isNumber(n)?n:t}return null}function _getEnumProp(e,t){for(var n in t){if(!t.hasOwnProperty(n)){continue}if(main_core.Dom.hasClass(e,t[n])){return t[n]}}return null}function _convertEventHandler(handler){if(main_core.Type.isFunction(handler)){return handler}if(!main_core.Type.isObject(handler)){throw new Error("BX.UI.ButtonManager.createFromNode: Event handler must be described as object or function.")}if(main_core.Type.isStringFilled(handler.code)){return function(){eval(handler.code)}}else if(main_core.Type.isStringFilled(handler.event)){return function(){var e;for(var t=arguments.length,n=new Array(t),o=0;o<t;o++){n[o]=arguments[o]}if(n[0]instanceof main_core_events.BaseEvent){e=n[0]}else{if(n[0]instanceof BaseButton){e=new main_core_events.BaseEvent({data:{button:n[0],event:n[1]}})}else if(n[1]instanceof main_popup.MenuItem){e=new main_core_events.BaseEvent({data:{item:n[1],event:n[0]}})}else{e=new main_core_events.BaseEvent({data:n})}}main_core_events.EventEmitter.emit(handler.event,e)}}else if(main_core.Type.isStringFilled(handler.handler)){return function(){var e=main_core.Reflection.getClass(handler.handler);if(main_core.Type.isFunction(e)){var t=this;if(main_core.Type.isStringFilled(handler.context)){t=main_core.Reflection.getClass(handler.context)}for(var n=arguments.length,o=new Array(n),i=0;i<n;i++){o[i]=arguments[i]}return e.apply(t,o)}else{console.warn("BX.UI.ButtonManager.createFromNode: be aware, the handler ".concat(handler.handler," is not a function."))}return null}}return null}function _convertEvents(e){if(main_core.Type.isPlainObject(e)){for(var t=0,n=Object.entries(e);t<n.length;t++){var o=babelHelpers.slicedToArray(n[t],2),i=o[0],r=o[1];e[i]=_classStaticPrivateMethodGet(this,ButtonManager,_convertEventHandler).call(this,r)}}}function _convertMenuEvents(e){var t=this;if(!main_core.Type.isArray(e)){return}e.forEach((function(e){if(e.onclick){e.onclick=_classStaticPrivateMethodGet(t,ButtonManager,_convertEventHandler).call(t,e.onclick)}if(e.events){_classStaticPrivateMethodGet(t,ButtonManager,_convertEvents).call(t,e.events)}if(main_core.Type.isArray(e.items)){_classStaticPrivateMethodGet(t,ButtonManager,_convertMenuEvents).call(t,e.items)}}))}var IButton=function(){function e(){babelHelpers.classCallCheck(this,e)}babelHelpers.createClass(e,[{key:"render",value:function e(){throw new Error("BX.UI.IButton: Must be implemented by a subclass")}}]);return e}();var AddButton=function(e){babelHelpers.inherits(t,e);function t(){babelHelpers.classCallCheck(this,t);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}babelHelpers.createClass(t,[{key:"getDefaultOptions",value:function e(){return{text:main_core.Loc.getMessage("UI_BUTTONS_ADD_BTN_TEXT"),color:ButtonColor.SUCCESS}}}]);return t}(Button);var ApplyButton=function(e){babelHelpers.inherits(t,e);function t(){babelHelpers.classCallCheck(this,t);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}babelHelpers.createClass(t,[{key:"getDefaultOptions",value:function e(){return{text:main_core.Loc.getMessage("UI_BUTTONS_APPLY_BTN_TEXT"),color:ButtonColor.LIGHT_BORDER}}}]);return t}(Button);var CancelButton=function(e){babelHelpers.inherits(t,e);function t(){babelHelpers.classCallCheck(this,t);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}babelHelpers.createClass(t,[{key:"getDefaultOptions",value:function e(){return{text:main_core.Loc.getMessage("UI_BUTTONS_CANCEL_BTN_TEXT"),color:ButtonColor.LINK}}}]);return t}(Button);var CloseButton=function(e){babelHelpers.inherits(t,e);function t(){babelHelpers.classCallCheck(this,t);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}babelHelpers.createClass(t,[{key:"getDefaultOptions",value:function e(){return{text:main_core.Loc.getMessage("UI_BUTTONS_CLOSE_BTN_TEXT"),color:ButtonColor.LINK}}}]);return t}(Button);var CreateButton=function(e){babelHelpers.inherits(t,e);function t(){babelHelpers.classCallCheck(this,t);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}babelHelpers.createClass(t,[{key:"getDefaultOptions",value:function e(){return{text:main_core.Loc.getMessage("UI_BUTTONS_CREATE_BTN_TEXT"),color:ButtonColor.SUCCESS}}}]);return t}(Button);var SaveButton=function(e){babelHelpers.inherits(t,e);function t(){babelHelpers.classCallCheck(this,t);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}babelHelpers.createClass(t,[{key:"getDefaultOptions",value:function e(){return{text:main_core.Loc.getMessage("UI_BUTTONS_SAVE_BTN_TEXT"),color:ButtonColor.SUCCESS}}}]);return t}(Button);var SendButton=function(e){babelHelpers.inherits(t,e);function t(){babelHelpers.classCallCheck(this,t);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}babelHelpers.createClass(t,[{key:"getDefaultOptions",value:function e(){return{text:main_core.Loc.getMessage("UI_BUTTONS_SEND_BTN_TEXT"),color:ButtonColor.SUCCESS}}}]);return t}(Button);var SettingsButton=function(e){babelHelpers.inherits(t,e);function t(){babelHelpers.classCallCheck(this,t);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}babelHelpers.createClass(t,[{key:"getDefaultOptions",value:function e(){return{icon:ButtonIcon.SETTING,color:ButtonColor.LIGHT_BORDER,dropdown:false}}}]);return t}(Button);var AddSplitButton=function(e){babelHelpers.inherits(t,e);function t(){babelHelpers.classCallCheck(this,t);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}babelHelpers.createClass(t,[{key:"getDefaultOptions",value:function e(){return{text:main_core.Loc.getMessage("UI_BUTTONS_ADD_BTN_TEXT"),color:ButtonColor.SUCCESS}}}]);return t}(SplitButton);var ApplySplitButton=function(e){babelHelpers.inherits(t,e);function t(){babelHelpers.classCallCheck(this,t);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}babelHelpers.createClass(t,[{key:"getDefaultOptions",value:function e(){return{text:main_core.Loc.getMessage("UI_BUTTONS_APPLY_BTN_TEXT"),color:ButtonColor.LIGHT_BORDER}}}]);return t}(SplitButton);var CancelSplitButton=function(e){babelHelpers.inherits(t,e);function t(){babelHelpers.classCallCheck(this,t);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}babelHelpers.createClass(t,[{key:"getDefaultOptions",value:function e(){return{text:main_core.Loc.getMessage("UI_BUTTONS_CANCEL_BTN_TEXT"),color:ButtonColor.LINK}}}]);return t}(SplitButton);var CloseSplitButton=function(e){babelHelpers.inherits(t,e);function t(){babelHelpers.classCallCheck(this,t);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}babelHelpers.createClass(t,[{key:"getDefaultOptions",value:function e(){return{text:main_core.Loc.getMessage("UI_BUTTONS_CLOSE_BTN_TEXT"),color:ButtonColor.LINK}}}]);return t}(SplitButton);var CreateSplitButton=function(e){babelHelpers.inherits(t,e);function t(){babelHelpers.classCallCheck(this,t);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}babelHelpers.createClass(t,[{key:"getDefaultOptions",value:function e(){return{text:main_core.Loc.getMessage("UI_BUTTONS_CREATE_BTN_TEXT"),color:ButtonColor.SUCCESS}}}]);return t}(SplitButton);var SaveSplitButton=function(e){babelHelpers.inherits(t,e);function t(){babelHelpers.classCallCheck(this,t);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}babelHelpers.createClass(t,[{key:"getDefaultOptions",value:function e(){return{text:main_core.Loc.getMessage("UI_BUTTONS_SAVE_BTN_TEXT"),color:ButtonColor.SUCCESS}}}]);return t}(SplitButton);var SendSplitButton=function(e){babelHelpers.inherits(t,e);function t(){babelHelpers.classCallCheck(this,t);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}babelHelpers.createClass(t,[{key:"getDefaultOptions",value:function e(){return{text:main_core.Loc.getMessage("UI_BUTTONS_SEND_BTN_TEXT"),color:ButtonColor.SUCCESS}}}]);return t}(SplitButton);exports.IButton=IButton;exports.BaseButton=BaseButton;exports.Button=Button;exports.SplitButton=SplitButton;exports.SplitSubButton=SplitSubButton;exports.ButtonManager=ButtonManager;exports.ButtonIcon=ButtonIcon;exports.ButtonSize=ButtonSize;exports.ButtonState=ButtonState;exports.ButtonColor=ButtonColor;exports.ButtonStyle=ButtonStyle;exports.ButtonTag=ButtonTag;exports.SplitButtonState=SplitButtonState;exports.SplitSubButtonType=SplitSubButtonType;exports.AddButton=AddButton;exports.ApplyButton=ApplyButton;exports.CancelButton=CancelButton;exports.CloseButton=CloseButton;exports.CreateButton=CreateButton;exports.SaveButton=SaveButton;exports.SendButton=SendButton;exports.SettingsButton=SettingsButton;exports.AddSplitButton=AddSplitButton;exports.ApplySplitButton=ApplySplitButton;exports.CancelSplitButton=CancelSplitButton;exports.CloseSplitButton=CloseSplitButton;exports.CreateSplitButton=CreateSplitButton;exports.SaveSplitButton=SaveSplitButton;exports.SendSplitButton=SendSplitButton})(this.BX.UI=this.BX.UI||{},BX.Event,BX.Main,BX);
//# sourceMappingURL=ui.buttons.bundle.map.js